home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 12
/
Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso
/
Aminet
/
mus
/
midi
/
Midifile12.readme
< prev
next >
Wrap
Text File
|
1996-05-05
|
6KB
|
131 lines
Short: A DICE link library for reading, parsing and writing MIDI files Version 1.2
Author: ajung@cs.uni-sb (Andreas Jung)
Uploader: ajung@cs.uni-sb (Andreas Jung)
Type: mus/midi
This directory contains a library of code to read and write standard
MIDI files, a standard as defined by the MMA, the MIDI Manufacturer's
Assocation. The format spec is available from the IMA:
International MIDI Association
5316 West 57th Street
Los Angeles, CA 90056
"make mftext" will compile a program that gives a verbose textual
listing of a MIDI file, and is an example of how to read a file. "make
mf1to0" will compile a program that demonstrates how to write midi
files, and converts format 1 multitrack files to format 0. "make
midifile.man" will produce a formatted manual page. Example MIDI files
are named "example*.uu". They're uuencoded; "make uutomid" will
uudecode them all. The first two examples (example1 and example2) are
the examples given in the 0.06 version of the standard MIDI file
specification.
...Tim Thompson...att!twitch!glimmer!tjt...
June, 1989 - Added code to write midi files and the mf1to0 program.
Michael Czeiszperger czei@pan.com
Notes on Porting:
This library was written on UNIX, and tested on Sun's, PC's and Mac's.
It is distributed in a raw vanilla state, which means you may have to do a
little editing depending on the requirements of your particular development
system. For instance, with THINK C on the Mac, you have to be careful
and include all the include files needed by their implementation of
UNIX calls such as malloc(). I've left in the proper calls ifdef'd on
THINK so you'll have a clue what to do.
czei@pan.com
-------------------------------------------------------------------------------
This code was ported from the orginal sources to Commodore Amiga system by
Andreas Jung
Klosterstr. 21
D-66125 Saarbruecken, Germany
Email: ajung@cs.uni-sb.de
The following changes were made:
- beautified the sources using indent
- removed most of the K&R declarations and replaced them by ANSI declarations
- fixed sources to use with DICE Professional
This package is distributed "as-is" under the GNU Public License.
I used part of the code in my program MIDI PERFORMANCE MANAGER - MPM. It seems
to work fine. No bugs were found yet. The code does *NOT* support MIDI format 2
files, only format 0 and 1 is supported !
---------------------------------------------------------------------------------
History:
V 1.0 Initial Amiga release
V 1.1 Fixed bug in header file
V 1.2 Updated archive with the sources of midifile V 1.11:
(1) can now set the global variable Mf_interactive to 1 to prevent the
reading functions from looking for file and track headers
(2) can now write system exclusive data with
mf_write_midi_event(delta_time, system_exlusive, 0, data, size)
(3) changed definition of 'sequencer_specific' in midifile.h to 0x7f
(4) changed mf_write_tempo to take additional delta_time as first argument
(since delta need not be zero)
(5) added function mf_write_seqnum(unsigned long delta_time, unsigned seqnum)
(6) changed mf_write_midi_event to use running status
(7) removed the code to write an end of track meta event automatically
-- this must now be done by the user of the library (I changed
it because I need to be able to control the time delta of this
meta event)
(8) added global variables Mf_division, Mf_currtempo, Mf_realtime, which
are updated by the reading functions. Mf_realtime is useful,
because Mf_currtime does not really measure time at all, since
its units change value at every tempo change. Mf_realtime is
the midi-time elapsed in units of 1/16 of a centisecond (but it
does not handle smpte times)
(9) maintains a history of tempo settings to update Mf_currtempo,
to handle tempo tracks.
(10) if there is an Mf_error function, the error routine no longer
exits, leaving it to the application to do this.
(11) chanmessage skips over invalid c1 command bytes > 127 and
adjusts invalid c2 argument byte > 127 to 127.
(12) readmt returns EOF when it encounters a 0 or 0x1a byte instead of an
expected header string (some midi files have padding at end).
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
456 138 69.7% 15-Aug-95 10:59:56 +dmakefile
81 81 0.0% 13-Aug-95 19:57:44 +example1.mid
118 103 12.7% 13-Aug-95 19:57:44 +example2.mid
117 83 29.0% 13-Aug-95 19:57:44 +example3.mid
1805 1134 37.1% 13-Aug-95 19:57:44 +example4.mid
1016 671 33.9% 13-Aug-95 19:57:44 +example5.mid
18160 10274 43.4% 27-Aug-95 19:02:42 +mf1to0
17300 4040 76.6% 27-Aug-95 19:02:16 +mf1to0.c
12928 7630 40.9% 27-Aug-95 19:02:28 +mfcheck
436 160 63.3% 27-Aug-95 19:02:16 +mfcheck.c
15308 8909 41.8% 27-Aug-95 19:02:16 +mfstrings
909 337 62.9% 27-Aug-95 19:02:16 +mfstrings.c
9471 2149 77.3% 27-Aug-95 19:02:16 +mftext.c
14660 8703 40.6% 27-Aug-95 19:02:16 +mfwrite_ex
1594 681 57.2% 27-Aug-95 19:02:16 +mfwrite_ex.c
11199 4250 62.0% 27-Aug-95 19:02:16 +midifile.3
32134 8956 72.1% 27-Aug-95 19:02:16 +midifile.c
13680 4365 68.0% 27-Aug-95 19:02:16 +midifile.doc
4104 1346 67.2% 27-Aug-95 19:02:16 +midifile.h
7576 4063 46.3% 27-Aug-95 19:02:16 +midifile.o
1571 464 70.4% 27-Aug-95 19:02:16 +midifile.proto
14988 8833 41.0% 27-Aug-95 19:02:16 +noteon
1269 362 71.4% 27-Aug-95 19:02:16 +noteon.c
4261 2030 52.3% 27-Aug-95 19:02:16 +README
-------- ------- ----- --------- --------
185141 79762 56.9% 02-Sep-95 12:42:38 24 files